package com.zhuhanpeng.cloud.api.entity;


import com.zhuhanpeng.cloud.mybatis.annotation.Column;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *用户登录完成返回用户信息
 */
public class ApiUserEntity implements Serializable {
    /**
     * 用户编码
     */
    private String userUuid;
    /**
     *用户名称
     */
    private String userName;

    @Column("NICE_NAME")
    private String niceName;
    /**
     * 权限列表
     */
    private List<String> authList = new ArrayList<>();


    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNiceName() {
        return niceName;
    }

    public void setNiceName(String niceName) {
        this.niceName = niceName;
    }

    public List<String> getAuthList() {
        return authList;
    }

    public void setAuthList(List<String> authList) {
        this.authList = authList;
    }

    public void addAuthList(String authItem) {
        this.authList.add(authItem);
    }
}
